home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
hc1_2_x
/
fretext1.sit
/
Free Text Help_Services v1.01
/
card_19204.txt
< prev
next >
Wrap
Text File
|
1990-04-13
|
1KB
|
29 lines
-- card: 19204 from stack: in.01
-- bmap block id: 0
-- flags: 0000
-- background id: 3166
-- name:
-- part contents for background part 1
----- text -----
* function to turn on or off bits in a subset according to their
* proximity to a given word's occurrences:
*
* ("SETSUBSETBITS", wordNum, neighborhoodSize, setOrClear,
* keyFileRefNum, ptrFileRefNum, subsetHandle)
* -- returns quietly with nothing if it is successful in setting or
* clearing (depending on setOrClear's value, 0 or non-0) the
* bits in the subset flag array in the neighborhood of the
* chosen word(s); gives an error msg if there was a problem.
* neighborhoodSize is in characters and is used to determine
* how many bits to set/clear on each side of the instances...
*
* function to grab a chunk of text:
*
* ("TEXT", textPtr, textChunkSize, textOffset, textFileRefNum)
* -- returns with (if possible; see below)
* textChunkSize bytes of text from the text file,
* starting at byte number textPtr-textOffset+1 and ending
* just before byte number textPtr-textOffset+textChunkSize+1.